package cn.getech.data.metadata.entity.meta;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "collection_table_field")
public class CollectionTableField {
    private static final long serialVersionUID = 1L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 表编号
     */
    @TableField(value = "table_id")
    private Integer tableId;

    /**
     * 字段名称
     */
    @TableField(value = "field_name")
    private String fieldName;

    /**
     * 字段类别
     */
    @TableField(value = "field_type")
    private String fieldType;

    /**
     * 字段的描述
     */
    @TableField(value = "field_desc")
    private String fieldDesc;

    /**
     * 是否是分区字段 1 是,0 否
     */
    @TableField(value = "is_partition")
    private Integer isPartition;

    @TableField(value = "field_order")
    private Integer fieldOrder;

    /**
     * 创建理时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 删除 1 是,0 否
     */
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * bdp_table_field表的id
     */
    @TableField(value = "table_field_id")
    private Integer tableFieldId;
    @TableField(value = "field_is_prk")
    private Integer primaryKey;

    @TableField(value = "field_length")
    private Integer fieldLength;

    @TableField(value = "field_is_null")
    private Integer fieldIsNull;



    /**
     * 密级安全级别
     */
    @TableField(value = "security_data_level")
    private String securityDataLevel;

    @TableField(exist=false)
    private String changeInfo;
    /**
     * 是否是分区字段 1 是,0 否
     */
    private String remarks;
}